import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;

/**
 * Created by hadoop on 2016/2/16.
 *
 * @see = http://www.dom4j.org/dom4j-1.6.1/
 * dom模型
 */
public class Dom4jtest {
    public static void main(String[] args) throws DocumentException {
        String xml="<root><people>ACELY</people></root>";
        Document document = DocumentHelper.parseText(xml);
        System.out.println(document.asXML());
    }
}
